package com.jojo.bubble.service.impl;

import com.jojo.bubble.entity.Auth;
import com.jojo.bubble.dao.AuthDao;
import com.jojo.bubble.service.AuthService;
import org.springframework.stereotype.Service;

import java.util.List;

import javax.annotation.Resource;

/**
 * 权限记录(Auth)表服务实现类
 *
 * @author jojo
 * @since 2023-07-21 04:47:27
 */
@Service("authService")
public class AuthServiceImpl implements AuthService {
    @Resource
    private AuthDao authDao;

    @Override
    public int count(Auth record) {
        return this.authDao.count(record);
    }

    @Override
    public int insert(Auth record) {
        return this.authDao.insert(record);
    }

    @Override
    public int update(Auth record) {
        return this.authDao.update(record);
    }

    @Override
    public Auth getInfo(int id) {
        return this.authDao.queryById(id);
    }

    @Override
    public List<Auth> getList(Auth record) {
        return this.authDao.getList(record);
    }

    @Override
    public int delete(int id) {
        return this.authDao.delete(id);
    }
}
